//
//  CZItem.m
//  A01-CZ彩票
//
//  Created by apple on 15-6-14.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "CZItem.h"

@implementation CZItem
+ (instancetype)itemWithTitle:(NSString *)title icon:(NSString *)icon{
//    CZItem *item = [self new];
//    item.title = title;
//    item.icon = icon;
//    
//    return item;
    
        CZItem *item = [self itemWithTitle:title];
        item.icon = icon;
        return item;
}

+ (instancetype)itemWithTitle:(NSString *)title{
    CZItem *item = [self new];
    item.title = title;
    return item;
}
@end
